package com.arraylistdemo ;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import java.util.Objects;

public class Poker implements Serializable {
    private String paixing;
    private Integer level;

    public Poker() {
    }

    public Poker(String paixing, Integer level) {
        this.paixing = paixing;
        this.level = level;
    }

    public String getPaixing() {
        return paixing;
    }

    public void setPaixing(String paixing) {
        this.paixing = paixing;
    }

    public Integer getLevel() {
        return level;
    }

    public void setLevel(Integer level) {
        this.level = level;
    }

    @Override
    public String toString() {
        return "Poker{" +
                "paixing='" + paixing + '\'' +
                ", level=" + level +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }
        Poker poker = (Poker) o;
        return Objects.equals(paixing, poker.paixing) && Objects.equals(level, poker.level);
    }

    @Override
    public int hashCode() {
        return Objects.hash(paixing, level);
    }
}
